package r5.powtorka6;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class BookTester {



	public static void main(String[] args) {
		class TitleComparator implements Comparator<Book> {
			
			@Override
			public int compare(Book o1, Book o2) {
				return o1.getTitle().compareTo(o2.getTitle());
			}
			
		}

		ArrayList<Book> books = new ArrayList<Book>();
		
		Collections.sort(books, new TitleComparator());
	}

}
